<?php

namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;


/**
 * This is the model class for table "myscrm_organization".
 *
 * @property string $Id
 * @property string $ConnectionString
 * @property string $DatabaseName
 * @property string $InstanceName
 * @property string $InstanceId
 * @property string $UniqueName
 * @property string $FriendlyName
 * @property integer $State
 * @property string $Email
 * @property integer $UpgradeSerialNumber
 * @property integer $IsCanUpgrade
 * @property integer $UpgradeOrder
 * @property string $CreatedOn
 * @property string $ModifiedOn
 * @property string $VersionNumber
 * @property string $CustomManager
 * @property string $CustomManagerPhone
 * @property string $Deliver
 * @property string $DeliverPhone
 * @property string $ScheduleKey
 * @property string $Area
 * @property string $LogoUrl
 */
class MyscrmOrganizationEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_organization';
    }

    public static function getDailiDb(){
        return \Yii::$app->dailipccdb; //config/web中配置的链接
    }

    public function attributes(){
        return [
            'Id',
            'ConnectionString',
            'DatabaseName',
            'InstanceName',
            'InstanceId',
            'UniqueName',
            'FriendlyName',
            'State',
            'Email',
            'UpgradeSerialNumber',
            'IsCanUpgrade',
            'UpgradeOrder',
            'CreatedOn',
            'ModifiedOn',
            'VersionNumber',
            'CustomManager',
            'CustomManagerPhone',
            'Deliver',
            'DeliverPhone',
            'ScheduleKey',
            'Area',
            'LogoUrl',
        ];
    }
}
